package com.retail.shopping.common.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.retail.common.core.annotation.Excel;
import com.retail.common.core.web.domain.BaseEntity;

/**
 * 购物车列表对象 shopping_cart_midden
 * 
 * @author retail
 * @date 2024-02-26
 */
public class ShoppingCartMidden extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车中间表编号 */
    @Excel(name = "购物车中间表编号")
    private Integer middenId;

    /** 购物车编号 */
    @Excel(name = "购物车编号")
    private Integer cartId;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private Integer skuId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer skuNum;

    /** 商品录入时价格 */
    @Excel(name = "商品录入时价格")
    private BigDecimal inputPrice;

    /** 商品总价格 数量*单价 */
    @Excel(name = "商品总价格 数量*单价")
    private BigDecimal skuTotalPrice;

    /** 商品状态 1.可购买 2.不可购买 */
    @Excel(name = "商品状态 1.可购买 2.不可购买")
    private Integer cartStatus;

    /** 创建时间 */
    private Date fountTime;

    public Integer getMiddenId() {
        return middenId;
    }

    public void setMiddenId(Integer middenId) {
        this.middenId = middenId;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getSkuNum() {
        return skuNum;
    }

    public void setSkuNum(Integer skuNum) {
        this.skuNum = skuNum;
    }

    public void setInputPrice(BigDecimal inputPrice)
    {
        this.inputPrice = inputPrice;
    }

    public BigDecimal getInputPrice() 
    {
        return inputPrice;
    }
    public void setSkuTotalPrice(BigDecimal skuTotalPrice) 
    {
        this.skuTotalPrice = skuTotalPrice;
    }

    public BigDecimal getSkuTotalPrice() 
    {
        return skuTotalPrice;
    }
    public void setCartStatus(Integer cartStatus) 
    {
        this.cartStatus = cartStatus;
    }

    public Integer getCartStatus() 
    {
        return cartStatus;
    }
    public void setFountTime(Date fountTime) 
    {
        this.fountTime = fountTime;
    }

    public Date getFountTime() 
    {
        return fountTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("middenId", getMiddenId())
            .append("cartId", getCartId())
            .append("skuId", getSkuId())
            .append("skuNum", getSkuNum())
            .append("inputPrice", getInputPrice())
            .append("skuTotalPrice", getSkuTotalPrice())
            .append("cartStatus", getCartStatus())
            .append("fountTime", getFountTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
